package com.power.sifa.approve.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.approve.model.Aprv_materials_options_version;
import com.power.sifa.approve.model.pageInfo.Aprv_materials_options_versionPageInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  表单绑定生成材料文件版本记录 Feign
 */
public interface IAprv_materials_options_versionFeign {

    /**
     * 表单绑定生成材料文件版本记录分页列表
     */
    @PostMapping("/aprv_materials_options_version/list")
    ResponseDTO list(@RequestBody Aprv_materials_options_versionPageInfo aprv_materials_options_versionPageInfo);

    /**
    * 查看表单绑定生成材料文件版本记录
    */
    @GetMapping("/aprv_materials_options_version/view")
    ResponseDTO view(@RequestParam("id") Integer id);

    /**
    * 删除表单绑定生成材料文件版本记录
    */
    @PostMapping("/aprv_materials_options_version/delete")
    ResponseDTO delete(@RequestParam("id") Integer id);

    ///**
    // * 查看表单绑定生成材料文件版本记录 复合主键使用
    // */
    //@PostMapping("/aprv_materials_options_version/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Aprv_materials_options_version.Aprv_materials_options_versionPK pk);

    /**
     * 修改或保存表单绑定生成材料文件版本记录
     */
    @PostMapping("/aprv_materials_options_version/save")
    ResponseDTO save(@RequestBody Aprv_materials_options_version aprv_materials_options_version);

    ///**
    // * 删除表单绑定生成材料文件版本记录 复合主键使用
    // */
    //@PostMapping("/aprv_materials_options_version/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Aprv_materials_options_version.Aprv_materials_options_versionPK pk);
    
    /**
     * 批量删除表单绑定生成材料文件版本记录
     */
    @PostMapping("/aprv_materials_options_version/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/aprv_materials_options_version/output")
    void output(HttpServletResponse response, @RequestBody Aprv_materials_options_versionPageInfo aprv_materials_options_versionPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/aprv_materials_options_version/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/aprv_materials_options_version/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;
    
}
